<?php
include_once "function_net_monitor.php";

$in_array['Enabled'] = $_POST['start'];
$in_array['Warning'] = $_POST['warning'];
$in_array['PassWd'] = $_POST['passwd'];
$in_array['Syslogd'] = "1";

if (gettype($_REQUEST['dev']) == "array")
{
	foreach ($_REQUEST['dev'] as $l)
	{
	 	$in_array['Dev'] .= $l. ",";
		//print $in_arry['Dev'];
	}
}	

if ($in_array['Enabled'] == 0)
{
	$in_array['PassWd'] = "";
	$in_array['Dev'] = "";
}



SetXmlNetMonitorInfo($in_array);
echo("<meta http-equiv='refresh'content=0;URL='flx_monitor_manage.php'>");
?>
